package sfin.swt.data;

import java.util.Calendar;

public class DateData {

	public int year;
	public int month;
	public int day;
	
	public DateData inYear(int year){
		this.year = year;
		return this;
	}
	
	public DateData inMonth(int month){
		this.month = month;
		return this;
	}
	
	public DateData inDay(int day){
		this.day = day;
		return this;
	}
	
	public DateData in(Calendar date){
		this.year = date.get(Calendar.YEAR);
		this.month = date.get(Calendar.MONTH);
		this.day = date.get(Calendar.DATE);
		return this;
	}
	
	
	public void setDate(int year, int month, int day){
		this.year = year;
		this.month = month;
		this.day = day;
	}
	
}
